package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.entity.Product;
import com.aiti.lulian.entity.ProductNew;
import com.aiti.lulian.vo.ProductDetailsVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductNewMapper extends BaseMapper<ProductNew> {

    ProductDetailsVo queryNewProductDetail(@Param("productId") String productId);

    Integer queryProductCount();

    List<String> queryProductBaseId();

    List<ProductDetailsVo> queryRandomProduct(@Param("baseIdList") List<String> baseIdList);

}
